<template>
	<router-view v-if="isRouterAlive" />
</template>

<script>
    export default {
        name: 'App',
        provide() {
            return {
                reload: this.reload
            }
        },
        setup() {
            return {
                isRouterAlive: true
            }
        },
        methods: {
            //先关闭再打开
            reload() {
                this.isRouterAlive = false;
                this.$nextTick(() => {
                    this.isRouterAlive = true;
                })
            }
        }
    };
</script>

<style>
    @import "./assets/css/main.css";
    @import "./assets/css/color-dark.css";
    @import "./assets/css/icon.css";
</style>